package com.hmall.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.user.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface AdderMapper extends BaseMapper<Address> {
    @Select("select * from `tb_address` where `user_id` = #{id}")
    List<Address> selectList(@PathVariable("id") Long id);
}
